<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="ctx" th:content="${#httpServletRequest.getContextPath()}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" th:href="@{/css/admin/base.css}">
    <link rel="stylesheet" th:href="@{/lib/font-awesome/4.7.0/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/css/admin/app.css}">
</head>

<body>

    <div class="z-pa">
        <!--
            data可选属性
            input-name
            limit
            url
            fieldname
         -->
        <div class="upload upload-file z-mab" data-input-name="files" data-limit="0" data-url="http://47.106.15.189:8086/xcips/file/upload/noLimit" data-fieldname="files">
            <div class="upload-list upload-list-text"></div>
            <div class="upload-tips">只能上传jpg/png文件，且不超过500kb</div>
            <div class="upload-error"></div>
            <div class="input-opacity">
                <input type="file" class="input" accept="image/gif,image/jpeg,image/jpg,image/png" multiple="multiple">
                <a class="z-btn z-default"><i class="fa fa-upload"></i> 上传</a>
            </div>
        </div>

        <div class="upload upload-image" data-input-name="images" data-limit="0" data-url="http://xc-dmp.37226.com/api/upload" data-fieldname="files">
            <div class="upload-list upload-list-image"></div>
            <div class="upload-tips">只能上传jpg/png文件，且不超过500kb</div>
            <div class="upload-error"></div>
            <div class="upload-loading">
                <i class="fa fa-cog fa-spin"></i> 图片上传中...
            </div>
            <div class="input-opacity">
                <input type="file" class="input" accept="image/gif,image/jpeg,image/jpg,image/png" multiple="multiple">
                <a class="z-btn z-default"><i class="fa fa-upload"></i> 上传</a>
            </div>
        </div>
    </div>

    <script th:src="@{/lib/jquery.min.js}"></script>
    <script th:src="@{/js/admin-upload.js}"></script>
</body>

</html>